﻿using System;
using Controller;

public partial class Modules_HTMLModuleControl : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            BindData();
        }
    }

    public void BindData()
    {
        var quoteController = new QuoteController();
        var listQuote = quoteController.GetRandomQuote();

        if (listQuote.Count > 0)
        {
            repeaterQuote.DataSource = listQuote;
            repeaterQuote.DataBind();
        }
    }

}